<!DOCTYPE html>
<html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>新增或修改</title>
	<style>
	.input-medium{border: 1px solid #f0f0f0; }
	.btn-primary{ position: relative; right: -180px; top:-30px;}
	#role_name,#memo{
	border-color:#dedede;
    }
    .form-horizontal .controls{
    	margin-left:170px;
    }
    #memo,#role_name{
    	width:208px;
    }
    .controls{
    	width:300px;
    }
    .span5{
    	width:470px;
    }
	</style>
	<script src="<%=basePath %>resources/js/system/role/addRoleForm.js"></script>
		
</head>

<body>
	
	<form:form id="addForm" method="post" modelAttribute="addRole" cssClass="form-horizontal" style="border-bottom:1px solid #dfdfdf;margin-bottom:10px;">	
		<form:hidden path="id" id="id"/>
		<form:hidden path="menuIds" id="menuIds"/>
		
		<div  class="row">
			<div class="span5">
				<div class="control-group ">
					<form:label cssClass="control-label" for="role_name" path="role_name" style='padding-top:2px'>角色名称：</form:label>
					<div class="controls">
						<form:input id="role_name" class="input-medium"  path="role_name" check-type="required" required-message="角色名称不能为空!"/>
						<font style="color:#f00;">*</font>
					</div>
				</div>
			</div>
			
			<div class="span5">
				<div class="control-group ">
					<form:label cssClass="control-label" for="memo" path="memo" style='padding-top:2px'>描述：</form:label>
					<div class="controls">
						<form:input id="memo" class="input-medium"  path="memo"/>
					</div>
				</div>
			</div>			
		</div>			
	</form:form>
	
	<div>
		<ul class="nav nav-tabs" id="myTab" style="margin-bottom:0px;">
			<li><a href="#moduleRight" id="moduleTab">操作权限</a></li>
		</ul>
		<div class="tab-content udtab" style="height: 276px;border-left: 1px solid #dedede;border-right: 1px solid #ededed;border-bottom: 1px solid #ededed;">
			<div id="moduleRight" style="height:270px;margin:5px 10px -6px 10px;">
				<div style="width: 50%;float:left;">
					<ul id="menuTree" class="ztree" ></ul>
				</div>
			</div>
		</div>			
	</div>		
</body>
</html>